package com.atguigu.lease.web.admin.service;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.admin.vo.room.RoomDetailVo;
import com.atguigu.lease.web.admin.vo.room.RoomItemVo;
import com.atguigu.lease.web.admin.vo.room.RoomQueryVo;
import com.atguigu.lease.web.admin.vo.room.RoomSubmitVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2023-07-24 15:48:00
*/
public interface RoomInfoService extends IService<RoomInfo> {

    //保存或更新房间
    void saveRoom(RoomSubmitVo roomSubmitVo);

    //根据id删除房间
    void removeByRoomId(Long id);

    //根据id查询房间详细信息
    RoomDetailVo queryRoomById(Long id);

    //根据分页查询房间信息
    void queryPage(Page<RoomItemVo> roomInfoPage, RoomQueryVo queryVo);
}
